description: |
  Navigate to the GitHub website, find the React repo using the
  search functionality and go to the repo's homepage
actors:
  - actor: ACTOR1
    segments:
      - segment: 1
        actions:
          - description: Navigate to the GitHub homepage
            action: org.getopentest.selenium.NavigateTo
            args:
              url: https://github.com/

          - description: Enter "react" in the search box
            action: org.getopentest.selenium.SendKeys
            args:
              locator: {css: "input[name='q']"}
              text: react
              sendEnter: true

          - description: Click the React link in the search results
            action: org.getopentest.selenium.Click
            args:
              locator: {css: "a[href='/facebook/react']"}

          - description: Verify that the Clone button exists and is visible
            action: org.getopentest.selenium.AssertElementVisible
            args:
              locator: {xpath: "//*[contains(@class,'btn')][contains(text(),'Clone')]"}